<div class="row-fluid">


<div class="header">
            
            <h1 class="page-title">Current Repair Process</h1>
        </div>
        
                <ul class="breadcrumb">
         
        
        </ul>
<div class="span12 pad_all">
<?php echo form_open_multipart('/engineer/repair/do_upload');?>


<div class="span11">
<table width="100%" class="table table-bordered" >
  <tr class="info">
               <td><b>SL No.</b></td>
               <td><b>Part Name</b></td>
			   <td><b>Docket No.</b></td>
			  <td><b>SO No.</b></td>
			  <td><b> Old Part Snaps</b></td>
			  <td><b>New Part Snaps</b></td>
            
             </tr>
			
 <tbody id="p_scents">   
 <?php $count=0;?>
<?php foreach ($so as $so1){$count=$count+1;?> 
  <tr><label for="p_scnts">
    <td width="10%"><input type="text" class="span8" name='sl_no[]' id="sl_no" value="<?php echo $count;?>" /></td>
    <td width="12%"><input type="text" class="span12" name="part_name[]" id="part_name" value="<?php echo $so1->name;?>" /></td>
	    <td width="13%"><input type="text" class="span12" name='docket_no[]' id="docket_no" value="<?php echo $case->docket_no;?>" /></td>
	 <td width="12%"><input type="text" class="span12"  id="case_no" value=" <?php echo $so1->so_no;?>"='case_no[]'/></td>
	 <input type="hidden" name="so_id[]" value="<?php echo $so1->id;   ?>"/><input type="hidden" name="case_id" value="<?php echo $so1->case_id;?>"/>
	  <td width="7%">
	<input type="file" size="4" name="old_img[<?php echo $count;?>][]" multiple="multiple" /></td>
	
	  <td width="7%">
	<input type="file" size="4" name="new_img[<?php echo $count;?>][]" multiple="multiple" /></td>
	
	  

 </label> </tr>
 <?php } ?>
 
  </tbody>
</table>

<input type="radio" name="expense" id="engineer_expense"/>&nbsp;&nbsp;Expenses <input type="radio" name="expense" id="no_expenses" checked="true"/>&nbsp;&nbsp;No Expenses
<table width="100%" class="table table-bordered" id="expense_table" >
  <tr class="info">
               <td><b>Travel</b></td>
               <td><b>Fooding</b></td>
			   <td><b>Accomodation</b></td>
			  <td><b>Conveyance </b></td>
			  <td><b> Other</b></td>
			 
			
            
             </tr>
			
 <tbody id="p_scents">
 <tr><label for="p_scnts">
    <td ><input type="text"  class="span12"  name="travel_expense"       id="travel_expense" />    </td>
    <td ><input type="text"  class="span12"  name="fooding_expense"      id="fooding_expense"  />   </td>
	<td><input  type="text"  class="span12"  name="accomodation_expense" id="accomodation_expense"/></td>
	<td ><input type="text"  class="span12"  name="conveyance_expense"   id="conveyance_expense" /> </td>
	<td ><input type="text"  class="span12"  name="other_expense"        id="other_expense"/>       </td>
	
 </label> </tr>  </tbody>
</table>


<p class="pull-right">
<input class="btn btn-danger" type="submit" data-loading-text="Loading..." name="new_case" id="submit" value="New Case">
<input class="btn btn-primary" type="submit" data-loading-text="Loading..." name="completed" id="submit" value="Completed"></p>
<?php echo form_close();?>

</div>
</div>
</div>
<script>
$(document).ready(function(){
$("#expense_table").hide(); 
$('#engineer_expense').click(function () { $("#expense_table").toggle(this.checked);});
$('#no_expenses').click(function () { $("#expense_table").hide();});
 });
</script>
<script>
function get_product()
{
alert("br");

}


